package main

import (
	"dev-assistant-backend/internal/dao"
	_ "dev-assistant-backend/internal/packed"

	_ "github.com/gogf/gf/contrib/drivers/sqlite/v2"

	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/os/gctx"

	"dev-assistant-backend/internal/cmd"
)

func initTables() {
	dao.InitTables()
}

func main() {
	initTables()

	g.Log().SetAsync(true)

	cmd.Main.Run(gctx.GetInitCtx())
}
